import Request from "../request";

export default {
    // 分类信息
    getNovelCategoty: (data: Object) => Request.get('/api/novel/getCtcategory', data),//获取产品列表
    addNovelCategory: (data: Object) => Request.post('/api/novel/addCategory', data),//添加分类
    editCategotyNovel: (data: Object) => Request.post('/api/novel/editCtcategory', data),//修改分类
    deleteCategoryNovel: (data: Object) => Request.post('/api/novel/deleteCtcategory', data),//删除分类

    // 小说信息
    addNovel: (data: Object) => Request.post('/api/novel/addCartoon', data),//添加漫画
    getNovelList: (data: Object) => Request.get('/api/novel/getCartoonList', data),//获取漫画列表
    getNovelDetail: (data: Object) => Request.get('/api/novel/getCartoonDetail', data),//获取漫画详情
    editNovel: (data: Object) => Request.post('/api/novel/editCartoon', data),//修改漫画
    removeNovel: (data: Object) => Request.post('/api/novel/deleteCartoon', data),//删除漫画
    getNovelChapterAll: (data: Object) => Request.get('/api/novel/getChapterList', data),//获取章节列表
    addNovelChapter: (data: Object) => Request.post('/api/novel/addChapter', data),//添加章节
  }